<!-- 头部 -->
<div ng-controller="GetOneelectricdataCtrl">
 	<div class="panel panel-default">
	 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;" >	

	 			 		
	 		<div class="nav navbar-nav m-t-sm">
	 			<!-- <button ><i class="glyphicon glyphicon-arrow-left"></i></button>	 -->       
				<a ui-sref="app.monitor.electricquantity" ><span style="background-color: #e0e0e0; text-align: center;"><i class="glyphicon glyphicon-arrow-left" style="height:30px;width:30px; "></i></span></a> 

	            <span><b>监控中心</b></span>
	            <i class="fa fa-angle-right" style="font-size:20px"></i>
	            <span><b>电量监控</b> </span>
	            <i class="fa fa-angle-right" style="font-size:20px"></i>
	            <span><b>用电详情</b></span> 
	         </div>
	        <!-- nabar right -->
	        <ul class="nav navbar-nav navbar-right" ng-controller="SigninFormController">          
	          <li class="dropdown" dropdown>
	            <a href class="dropdown-toggle clear" dropdown-toggle>
	              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
	                <img src="img/a0.jpg" alt="...">
	                <i class="on md b-white bottom"></i>
	              </span>
	              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
	            </a>
	            <!-- dropdown -->
	            <ul class="dropdown-menu animated fadeInRight w">  
	              <li>
	                <a ui-sref="app.user.info">用户信息</a>
	              </li>       
	              <li class="divider"></li>
	              <li>
	                <a ui-sref="access.signin" ng-click="logout()">登出</a>
	              </li>
	            </ul>
	            <!-- / dropdown -->
	          </li>
	        </ul>
	 	</div>
	</div>
	<div class="panel m-t-n-md">
		<div class="panel-body">
			<h4 class="pull-right">
				<b>刷新频率：</b>
				<button ng-click="setinterval1()">30秒</button>
				<button ng-click="setinterval2()">1分钟</button>
				<button ng-click="setinterval3()">5分钟</button>
			</h4>
			<h3 class="m-t">{{aaData.name}}</h3>
			<h4 class="m-t">1舍405室用电详情</h4>
			<div class="row m-t-lg">
				<div class="col-md-6">
					<table class="table" style="font-size: 16px">
						<tr>
							<th>实时电压</th>
							<th>{{aaData.voltage}}</th>
						</tr>
						<tr>
							<th>实时电流</th>
							<th>{{aaData.current}}</th>
						</tr>
							<tr>
							<th>实时功率</th>
							<th>{{aaData.power}}</th>
						</tr>
							<tr>
							<th>实时用电量</th>
							<th>{{aaData.total_power}}</th>
						</tr>
							<tr>
							<th>当前时间</th>
							<th>{{aaData.current_time}}</th>
						</tr>
					</table>
				</div>
				<div class="col-md-6">
					<table class="table" style="font-size: 16px">
						<tr>
							<th>最大功率</th>
							<th>{{aaData.max_power}}</th>
						</tr>
						<tr>
							<th>工作状态</th>
							<th>{{aaData.use_status}}</th>
						</tr>
							<tr>
							<th>限电模式</th>
							<th>手动恢复/自动恢复</th>
						</tr>
							<tr>
							<th>恢复时间</th>
							<th>{{aaData.auto_regain_min}}</th>
						</tr>
							<tr>
							<th></th>
							<th></th>
						</tr>
					</table>
				</div>
				<!-- <div class="col-md-4">
					<table class="table" style="font-size: 16px">
						<tr>
							<th><button class="btn btn-sm btn-rounded" ng-click="setPower()">功率设置</button></th>
							<th></th>
						</tr>
						<tr>
							<th></th>
							<th></th>
						</tr>
							<tr>
							<th><button class="btn btn-sm btn-info btn-rounded">恢复用电</button></th>
							<th><button class="btn btn-sm btn-danger btn-rounded">强制断电</button></th>
						</tr>
							<tr>
							<th><button class="btn btn-sm btn-rounded">设置时间</button></th>
							<th><button class="btn btn-sm btn-rounded">故障上报</button></th>
						</tr>
							<tr>
							<th></th>
							<th></th>
						</tr>
					</table>
				</div> -->
			</div>
		</div>
	</div>
</div>